package com.blc.service.impl;

import com.blc.config.AccessTokenThreadLocal;
import com.blc.enums.WxEnums;
import com.blc.service.GeneralService;
import com.blc.util.InteractionUtil;
import org.springframework.stereotype.Service;

@Service
public class GeneralServiceImpl implements GeneralService {
    private final InteractionUtil interactionUtil = new InteractionUtil();


    @Override
    public String createMenu(String body) {
       String url =  WxEnums.CREATE_MENU.getUrl().replace("ACCESS_TOKEN", AccessTokenThreadLocal.get());
       return interactionUtil.sendPost(url, body);
    }
}
